package com.qys.livesMall.common.utils;

/**
 * @menu PatternUtil
 * @date 2023/06/14 17:34
 */
public class PatternUtil {

    private static String NUMBER_PATTERN="([1-9]\\d*\\.?\\d*)|(0\\.\\d*[1-9]$)";

    public static boolean matcherNumber( String text){
        return text.matches(NUMBER_PATTERN);
    }

}

